﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Combat/Combat.master" AutoEventWireup="true" CodeFile="SoldierScoreStat.aspx.cs" StylesheetTheme="Content" Inherits="Combat_SoldierScoreStat" %>

<%@ Register src="../UserContral/ListPageContral.ascx" tagname="ListPageContral" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" width="100%" >
<caption><span>查询条件</span></caption>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="4" width="100%">
<tr>
<td style="width:80px">单位</td>
<td style="width:450px">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><asp:DropDownList ID="ddlDepartment" runat="server" 
        onselectedindexchanged="ddlDepartment_SelectedIndexChanged" 
        AutoPostBack="True">
    </asp:DropDownList></td>
<td><asp:DropDownList ID="ddlDepartment2" runat="server" >
    </asp:DropDownList></td>
<td style="width:60px"></td>
<td><asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlRank_SelectedIndexChanged">
    </asp:DropDownList></td>
<td><asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlRank_SelectedIndexChanged">
    </asp:DropDownList></td>
</tr>
</table>
    
</td>
<td>

</td>
<td>
</td>
</tr>
<td>警衔、岗位</td>
<td colspan="3">
<table border="0" cellpadding="0" cellspacing="0">
<tr>

<td><asp:DropDownList ID="ddlRank" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlRank_SelectedIndexChanged">
    </asp:DropDownList> <asp:DropDownList ID="ddlStation" runat="server" 
        AutoPostBack="True" onselectedindexchanged="ddlStation_SelectedIndexChanged"></asp:DropDownList>&nbsp;</td>
    <td>&nbsp;</td>
    <td><asp:RadioButtonList ID="rbtnContract" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem Value="0" Selected="True">现役</asp:ListItem>
        <asp:ListItem Value="1">非现役</asp:ListItem>
    </asp:RadioButtonList></td>
    <td>&nbsp;</td>
    <td><asp:RadioButtonList ID="rbtnPass" runat="server" 
        RepeatDirection="Horizontal">
        <asp:ListItem Selected="True" Value="1">合格</asp:ListItem>
        <asp:ListItem Value="0">不合格</asp:ListItem>
    </asp:RadioButtonList></td>
    
</tr>
</table>
    
   
</td>
    <tr>
<td>技能</td>
<td colspan="3">
    <asp:DropDownList ID="ddlSkill" runat="server" Width="530px">
    </asp:DropDownList>
</td>
    </tr>
    <tr>
<td>士兵名称</td>
<td>
    <asp:TextBox ID="txtSoldierName" runat="server"></asp:TextBox>
</td>
<td>&nbsp;</td>
<td>
    &nbsp;</td>
    </tr>
    <tr>
<td>&nbsp;</td>
<td>
    <asp:Button ID="btnQuery" runat="server" Text="查询" onclick="btnQuery_Click" />
</td>
<td>&nbsp;</td>
<td>
    &nbsp;</td>
    </tr>
</table>
</td>
</tr>
</table>

    <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" 
        Caption="<span>查询结果</span>" onrowdatabound="UserGrid_RowDataBound">
        <Columns>            
           <asp:TemplateField HeaderText="序号">
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server" ForeColor="#666666"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>     
            <asp:TemplateField HeaderText="士兵名称">             
                <ItemTemplate>
                  <%# Eval("SoldierName")%>
                </ItemTemplate>
            </asp:TemplateField>      
            <asp:TemplateField HeaderText="训练成绩" HeaderStyle-Width="80px">             
                <ItemTemplate>
                  <%#GetScore(Eval("SoldierID").ToString())%>
                </ItemTemplate>
            </asp:TemplateField>                             
        </Columns>
        <EmptyDataTemplate>
        没有数据
        </EmptyDataTemplate>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" PageSize="20" OnPageSizeChange="ListPageContral1_PageSizeChange" runat="server" />
</asp:Content>

